﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SharpEntities;
using ARD.Common;
using ARD.Configuration;
using ARD.Data;

namespace SharpEntitiesTest
{
    class SharpEntitiesTest_Program
    {
        static void Main(string[] args)
        {
            Test1();
        }

        static void Test1()
        {
            using(DataAccessLayer dao = new DataAccessLayer("DbConfig.xml", "sql.xml", "SqlServerNorthWind"))
            {
                DataRowCollection employeeRows = dao.GetEmployeesByCity("london");
                List<Employee> employees = EntityFactory.GetObjects<Employee>(employeeRows);
            }
        }
    }
}
